package net.view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.GridBagLayout;
import javax.swing.JButton;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.border.LineBorder;
import java.awt.Color;
import java.awt.Rectangle;

public class MainFrame extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MainFrame frame = new MainFrame();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public MainFrame() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		GridBagLayout gbl_contentPane = new GridBagLayout();
		gbl_contentPane.columnWidths = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
		gbl_contentPane.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0};
		gbl_contentPane.columnWeights = new double[]{1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, Double.MIN_VALUE};
		gbl_contentPane.rowWeights = new double[]{1.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		contentPane.setLayout(gbl_contentPane);
		
		JPanel loginInfoPanel = new JPanel();
		loginInfoPanel.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
		GridBagConstraints gbc_loginInfoPanel = new GridBagConstraints();
		gbc_loginInfoPanel.gridheight = 2;
		gbc_loginInfoPanel.gridwidth = 3;
		gbc_loginInfoPanel.insets = new Insets(0, 0, 5, 5);
		gbc_loginInfoPanel.fill = GridBagConstraints.BOTH;
		gbc_loginInfoPanel.gridx = 0;
		gbc_loginInfoPanel.gridy = 0;
		contentPane.add(loginInfoPanel, gbc_loginInfoPanel);
		
		JPanel titlePanel = new JPanel();
		titlePanel.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
		GridBagConstraints gbc_titlePanel = new GridBagConstraints();
		gbc_titlePanel.gridheight = 2;
		gbc_titlePanel.gridwidth = 8;
		gbc_titlePanel.insets = new Insets(0, 0, 5, 5);
		gbc_titlePanel.fill = GridBagConstraints.BOTH;
		gbc_titlePanel.gridx = 3;
		gbc_titlePanel.gridy = 0;
		contentPane.add(titlePanel, gbc_titlePanel);
		
		JPanel menuPanel = new JPanel();
		menuPanel.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
		GridBagConstraints gbc_menuPanel = new GridBagConstraints();
		gbc_menuPanel.gridwidth = 3;
		gbc_menuPanel.gridheight = 6;
		gbc_menuPanel.insets = new Insets(0, 0, 5, 5);
		gbc_menuPanel.fill = GridBagConstraints.BOTH;
		gbc_menuPanel.gridx = 0;
		gbc_menuPanel.gridy = 2;
		contentPane.add(menuPanel, gbc_menuPanel);
		
		JPanel mainViewPanel = new JPanel();
		mainViewPanel.setBounds(new Rectangle(20, 20, 20, 20));
		mainViewPanel.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
		GridBagConstraints gbc_mainViewPanel = new GridBagConstraints();
		gbc_mainViewPanel.gridheight = 6;
		gbc_mainViewPanel.gridwidth = 9;
		gbc_mainViewPanel.insets = new Insets(0, 0, 5, 5);
		gbc_mainViewPanel.fill = GridBagConstraints.BOTH;
		gbc_mainViewPanel.gridx = 3;
		gbc_mainViewPanel.gridy = 2;
		contentPane.add(mainViewPanel, gbc_mainViewPanel);
	}

}
